import axios from '@/axios'

export const login = data => (
  axios({
    url: '/login',
    data,
    method: 'post',
    login: true
  })
)

export const userLogout = () => (
  axios({
    url: '/userlogout',
    data: {},
    method: 'get'
  })
)

export const forceLogout = data => (
  axios({
    url: '/forcelogout',
    data,
    method: 'post'
  })
)

export const keepConnect = () => (
  axios({
    url: '/keepconnect',
    data: {},
    method: 'post'
  })
)

export const getOperator = () => (
  axios({
    url: '/operatorquery',
    method: 'post'
  })
)

export const userStatus = data => (
  axios({
    url: '/userstatus',
    data,
    method: 'post'
  })
)

export const verificationcode = data => (
  axios({
    url: '/verificationcode',
    data,
    method: 'post'
  })
)



